package vn.vfriends.soffice.service;

import java.io.Serializable;
import java.util.List;
import vn.vfriends.soffice.model.Role;

/**
 *
 * @author chaungoctuan@gmail.com
 */
public interface RoleService extends Serializable {

    void create(Role role) throws Exception;

    void edit(Role role) throws Exception;

    void remove(Role role) throws Exception;

    Role find(Object id);

    List<Role> findAll();
    
    Role findByCode(String code);
    
    Role findByName(String name);

    List<Role> findRange(int[] range);

    int count();
}
